package com.dotndot.momserver.data;

import java.util.*;

import javax.jdo.annotations.*;

import com.google.appengine.api.datastore.*;

@PersistenceCapable( identityType = IdentityType.APPLICATION )
public class Baby
{
    @PrimaryKey
    @Persistent( valueStrategy = IdGeneratorStrategy.IDENTITY )
    private Long index;

    @Persistent
    private Long momIndex;

    @Persistent
    private String name;

    @Persistent
    private String gender;

    @Persistent
    private Date birthday;

    @Persistent
    private Blob avatar;

    public Baby( Long momIndex, String name, String gender, Date birthday, Blob avatar )
    {
        setMomIndex(momIndex);
        setName(name);
        setGender(gender);
        setBirthday(birthday);
        setAvatar(avatar);
    }
    
    public void setMomIndex( Long momIndex )
    {
        this.momIndex = momIndex;
    }

    public Long getMomIndex()
    {
        return momIndex;
    }
    
    public void setIndex( Long index )
    {
        this.index = index;
    }

    public Long getIndex()
    {
        return index;
    }

    public void setName( String name )
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setGender( String gender )
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }

    public void setBirthday( Date birthday )
    {
        this.birthday = birthday;
    }

    public Date getBirthday()
    {
        return birthday;
    }

    public void setAvatar( Blob avatar )
    {
        this.avatar = avatar;
    }

    public Blob getAvatar()
    {
        return avatar;
    }
}
